package com.practice.bootdemo.jdemo;


import com.practice.bootdemo.util.DateUtil;
import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

/**
 * @author :Administrator
 * @description: TODO edit class Description
 * @create date: 2021/11/12 10:54
 */
public class DateTest {
    public static void main(String[] args) {
        m1();
    }

    public static void m1() {
        Date startNormalizeDay = DateUtil.getStartNormalizeDay(new Date());
        System.out.println(DateFormatUtils.format(startNormalizeDay, "yyyy-MM-dd HH:mm:ss"));
        Date endNormalizeDay = DateUtil.getEndNormalizeDay(new Date());
        System.out.println(DateFormatUtils.format(endNormalizeDay, "yyyy-MM-dd HH:mm:ss"));
        System.out.println(startNormalizeDay.after(endNormalizeDay));
        System.out.println(startNormalizeDay.before(endNormalizeDay));
    }
}
